//
//  PxPwdModifyViewController.m
//  OilCard
//
//  Created by Xu Yefeng on 14-5-18.
//  Copyright (c) 2014年 Free. All rights reserved.
//

#import "PxAboutUsViewController.h"

@implementation PxAboutUsViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self setLogoTitleViewWithTitle:@"关于"];

    [self setup];
}

-(void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
}

-(void)setup
{
    UIView *backView = [[UIView alloc] initWithFrame:CGRectMake(0, 30, self.view.width, 80)];
    backView.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:backView];
    
    CGFloat left = (self.view.width - 190)/2;
    UIImageView *image = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Images/icon"]];
//    image.backgroundColor = [UIColor redColor];
    image.contentMode =  UIViewContentModeCenter;
    image.height = backView.height;
    image.left = left;
    [backView addSubview:image];
    
    UILabel *title = [[UILabel alloc] initWithFrame:CGRectMake(image.right + 15, 10, 100, 30)];
//    title.left = image.right + 15;
    title.font = [UIFont boldSystemFontOfSize:17];
    title.text = @"极配";
    [title sizeToFit];
    [backView addSubview:title];
    
    UILabel *version = [[UILabel alloc] initWithFrame:CGRectMake(image.right + 15, title.bottom + 1.5, 100, 30)];
    version.text = [NSString stringWithFormat:@"Version %@", XcodeAppVersion];
    version.font = [UIFont systemFontOfSize:13];
    [version sizeToFit];
    [backView addSubview:version];
    
    UILabel *copyright = [[UILabel alloc] initWithFrame:CGRectMake(image.right + 15, version.bottom + 1.5, 100, 30)];
    copyright.text = @"Copyright JEEPEI Inc.";
    copyright.font = [UIFont systemFontOfSize:13];
    [copyright sizeToFit];
    [backView addSubview:copyright];
}

@end
